<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" lang="en" th:with="unixstamp=${#dates.createNow().time}">
<head th:replace="common::header"></head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header t-title layui-bg-cyan mlk-title">售后参数管理</div>
					<div class="layui-card-body">
                        <form class="layui-form" id="queryForm">
                            <div class="layui-form-item">
                                <div class="layui-inline" style="margin-right: -50px;">
                                    <label class="layui-form-label">参数名称</label>
                                    <div class="layui-input-inline" style="width: 130px;">
                                        <input type="text" name="name" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin-right: -50px;">
                                    <label class="layui-form-label" style="width: 130px;">参数类型</label>
                                    <div class="layui-input-inline" style="width: 130px;">
                                        <select name="type">
                                            <option value=""></option>
                                            <option value="1">品牌</option>
                                            <option value="2">报备型号</option>
                                            <option value="3">故障类型</option>
                                            <option value="4">换购型号</option>
                                            <option value="5">分类</option>
                                            <option value="6">产品型号</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin-right: -50px;width: 100px;" >
                                    <div class="layui-input-inline">
                                        <a href="#" class="layui-btn layui-btn-normal" lay-submit lay-filter="*" id="submit">查询</a>
                                        <a href="#" class="layui-btn layui-btn-danger" lay-submit lay-filter="*" id="reset">重置</a>
                                    </div>
                                </div>
                                <input type="reset" class="mlk-hide" id="queryReset">
                            </div>
                        </form>
						<table class="layui-table" id="table" lay-filter="table" style="height:100%;"></table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>

<div id="addLayer" class="mlk-hide">
    <form class="layui-form layui-form-pane" id="addForm">
        <div class="layui-form-item" pane>
            <label class="layui-form-label">参数的名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入参数的名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">参数的类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required">
                    <option value="1">品牌</option>
                    <option value="2">报备型号</option>
                    <option value="3">故障类型</option>
                    <option value="4">换购型号</option>
                    <option value="5">分类</option>
                    <option value="6">产品型号</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">展示顺序(数字的大小表示顺序)</label>
            <div class="layui-input-block">
                <input type="text" name="seq" required  lay-verify="required" placeholder="请输入展示顺序(数字的大小表示顺序)" autocomplete="off" class="layui-input">
            </div>
        </div>
        <input type="reset" class="mlk-hide" id="addForm_reset">
    </form>
</div>

<div id="updateLayer" class="mlk-hide">
    <form class="layui-form layui-form-pane" id="updateForm" lay-filter="updateForm">
        <input type="hidden" name="id">
        <div class="layui-form-item" pane>
            <label class="layui-form-label">参数的名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入参数的名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">参数的类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required">
                    <option value="1">品牌</option>
                    <option value="2">型号</option>
                    <option value="3">故障类型</option>
                    <option value="4">换购型号</option>
                    <option value="5">分类</option>
                    <option value="6">产品型号</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">展示顺序(数字的大小表示顺序)</label>
            <div class="layui-input-block">
                <input type="text" name="seq" required  lay-verify="required" placeholder="请输入展示顺序(数字的大小表示顺序)" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</div>

<script type="text/html" id="toolbar">
    <a class="layui-btn layui-btn-md" lay-event="add">新增参数</a>
</script>
<script type="text/html" id="tool">
    <a class="layui-btn layui-btn-sm layui-btn-warm" lay-event="update">修改</a>
    <a class="layui-btn layui-btn-sm layui-btn-warm" lay-event="del">删除</a>
</script>
<div th:include="common::footer"></div>
<script type="text/javascript" th:src="@{/js/busParam/busParam.js}"></script>
</html>